package com.igeek.yygh.model.elders;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.igeek.yygh.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-08-18
 */
@Data
@TableName("elders")
@ApiModel(value="Elders对象", description="")
public class Elders extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "老人姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private String sex;

    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @ApiModelProperty(value = "出生日期")
    @TableField("birthday")
    private LocalDateTime birthday;

    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @ApiModelProperty(value = "入住日期")
    @TableField("enterdate")
    private LocalDateTime enterdate;

    @ApiModelProperty(value = "身份证号")
    @TableField("numberId")
    private String numberId;

    @ApiModelProperty(value = "紧急联系人")
    @TableField("emergencycontact")
    private String emergencycontact;

    @ApiModelProperty(value = "联系人id")
    @TableField("kidId")
    private Long kidId;

    @ApiModelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;
    @ApiModelProperty(value = "经纬度")
    @TableField("lalo")
    private String lalo;
    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

}
